import cv2
import numpy as np


def sift_kp(image):
    gray_image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
    sift = cv2.xfeatures2d_SIFT.create()
    kp, des = sift.detectAndCompute(image, None)
    kp_image = cv2.drawKeypoints(image, kp, None)
    return kp_image, kp, des

kp_image, _, des = sift_kp(image)

image1 = cv2.imread("test.png")
image2 = cv2.imread("test2.png")

image3, kps1, des1 = sift_kp(image1)
image4, kps2, des2 = sift_kp(image2)
